<?php
/*
 * Permet de changer le nom courant du joueur
 */
$defaultPlayerId = '';

if(isset($_GET['playerId'])){
	$_SESSION['playerId'] = $_GET['playerId'];
}

if(isset($_SESSION['playerId'])){
	$defaultPlayerId = $_SESSION['playerId'];
}

?>
<form method="GET" action=".">
	<input type="text" name="playerId" value="<?php echo $defaultPlayerId;?>" />
	<input type="submit"/>
<form/>


